﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StationCodeEntry.aspx.cs"
    Inherits="MTRC.ODMS.Web.SOM.CodeSetup.StationCodeEntry" %>

<%@ Register Assembly="APJ.Web.UI.WebControls" Namespace="APJ.Web.UI.WebControls"
    TagPrefix="APJ" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxControlToolkit" %>
<%@ Register Src="~/UserControl/Menu/PageFoot.ascx" TagName="PageFoot" TagPrefix="WebStructure" %>
<%@ Register Src="~/UserControl/Menu/TabStrip.ascx" TagName="TabStrip" TagPrefix="WebStructure" %>
<%@ Register Src="~/UserControl/Menu/PageHead.ascx" TagName="PageHead" TagPrefix="WebStructure" %>
<%@ Register Src="~/UserControl/Menu/MainMenu.ascx" TagName="MainMenu" TagPrefix="WebStructure" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Operational Data Management System</title>
    <link href="<%=ResolveUrl("~/CSS/common.css")%>" rel="stylesheet" type="text/css" />
    <link href="../../CSS/common.css" rel="stylesheet" type="text/css" />
    <link href="~/CSS/Menu.css" rel="stylesheet" type="text/css" />
    <script language="JavaScript" type="text/javascript" src="../../Javascript/CommonFunction.js"></script>
    <script language="javascript" type="text/javascript">
        function CheckData(SOM_StationCode) {
            if (document.getElementById("ddlStation").selectedIndex == 0) {
                alert(SOM_StationCode);
                document.getElementById("ddlStation").focus();
                return false;
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <AjaxControlToolkit:ToolkitScriptManager ID="ToolkitScriptManager" runat="server">
    </AjaxControlToolkit:ToolkitScriptManager>
    <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <table border="0" cellpadding="0" cellspacing="0" class="Page_Container">
                <tr>
                    <td colspan="2" class="Page_Head">
                        <WebStructure:PageHead ID="PageHead" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td class="Page_Left">
                        <WebStructure:MainMenu ID="MainMenu" runat="server" AppPath="../../" CurrMenuID="M140920" />
                    </td>
                    <td class="Page_Right">
                        <table class="Page_Contents">
                            <tr>
                                <td class="TabStrip">
                                    <WebStructure:TabStrip ID="TabStrip" CurrMenuID="M140820" ParentMenuID="M140920"
                                        DMenuMode="CurrOnly" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td class="Contents" style="height: 16px">
                                    <!--**********context Begin *****************-->
                                    <fieldset style="clear: both; margin-bottom: 10px;">
                                        <legend class="Title1">
                                            <asp:Label ID="lblTitle" runat="server" Text="CategoryEntry"></asp:Label></legend>
                                        <table style="width: 98%" border="0" cellpadding="1" cellspacing="1">
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lblStation" runat="server" Text="Station Code"></asp:Label><em>*</em>
                                                </td>
                                                <td>
                                                    <asp:DropDownList ID="ddlStation" runat="server" OnTextChanged="ddlStation_TextChanged"
                                                        AutoPostBack="True" CssClass="ddlStation">
                                                    </asp:DropDownList>
                                                </td>
                                                <td style="width: 35%">
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label runat="server" ID="lblDescription" Text="Description"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox runat="server" ID="txtDescription" Width="300px" MaxLength="40"></asp:TextBox>
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label runat="server" ID="lblControlStation" Text="Control Station"></asp:Label>
                                                    <asp:Label runat="server" ID="lblEm" Visible="false"><em>*</em></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:DropDownList ID="ddlControlStation" runat="server" CssClass="ddlStation">
                                                    </asp:DropDownList>
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label runat="server" ID="lblEMTSStationCode" Text="EMTS Station Code"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtEMTSStationCode" runat="server" Width="300px" MaxLength="10" />
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    <asp:Label runat="server" ID="lblVoid" Text="Void"></asp:Label><asp:CheckBox runat="server"
                                                        ID="chVoid" AutoPostBack="True" OnCheckedChanged="chVoid_CheckedChanged" />
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" align="right">
                                                    <asp:Button ID="btnNew" runat="server" Text="New" OnClick="btnNew_Click" />
                                                    <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" />
                                                    <asp:Button ID="btnSaveReturn" runat="server" Text="Save And Return" OnClick="btnSaveReturn_Click" />
                                                    <asp:Button ID="btnSaveNew" runat="server" Text="Save And New" OnClick="btnSaveNew_Click" />
                                                    <asp:Button ID="btnCancel" runat="server" Text="Cancel" OnClick="btnCancel_Click" />
                                                </td>
                                                <td>
                                                    <asp:HiddenField ID="HiddenFieldLocationTypeId" runat="server" />
                                                </td>
                                            </tr>
                                        </table>
                                        <asp:TextBox ID="txtSession" runat="server"></asp:TextBox></fieldset>
                                    <!--**********context End *****************-->
                                </td>
                            </tr>
                            <tr>
                                <td class="Page_Foot" style="height: 54px">
                                    <WebStructure:PageFoot ID="PageFoot" runat="server" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="btnNew" />
            <asp:PostBackTrigger ControlID="btnSave" />
            <asp:PostBackTrigger ControlID="btnSaveReturn" />
            <asp:PostBackTrigger ControlID="btnSaveNew" />
            <asp:PostBackTrigger ControlID="btnCancel" />
            <asp:PostBackTrigger ControlID="ddlStation" />
        </Triggers>
    </asp:UpdatePanel>
    </form>
</body>
</html>
